home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / xen / interface / io / xenbus.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  1.1 KB  |  45 lines

  1. /*****************************************************************************
  2.  * xenbus.h
  3.  *
  4.  * Xenbus protocol details.
  5.  *
  6.  * Copyright (C) 2005 XenSource Ltd.
  7.  */
  8.  
  9. #ifndef _XEN_PUBLIC_IO_XENBUS_H
  10. #define _XEN_PUBLIC_IO_XENBUS_H
  11.  
  12. /* The state of either end of the Xenbus, i.e. the current communication
  13.    status of initialisation across the bus.  States here imply nothing about
  14.    the state of the connection between the driver and the kernel's device
  15.    layers.  */
  16. enum xenbus_state
  17. {
  18.     XenbusStateUnknown      = 0,
  19.     XenbusStateInitialising = 1,
  20.     XenbusStateInitWait     = 2,  /* Finished early
  21.                      initialisation, but waiting
  22.                      for information from the peer
  23.                      or hotplug scripts. */
  24.     XenbusStateInitialised  = 3,  /* Initialised and waiting for a
  25.                      connection from the peer. */
  26.     XenbusStateConnected    = 4,
  27.     XenbusStateClosing      = 5,  /* The device is being closed
  28.                      due to an error or an unplug
  29.                      event. */
  30.     XenbusStateClosed       = 6
  31.  
  32. };
  33.  
  34. #endif /* _XEN_PUBLIC_IO_XENBUS_H */
  35.  
  36. /*
  37.  * Local variables:
  38.  *  c-file-style: "linux"
  39.  *  indent-tabs-mode: t
  40.  *  c-indent-level: 8
  41.  *  c-basic-offset: 8
  42.  *  tab-width: 8
  43.  * End:
  44.  */
  45.